#ifndef COLLISION_H
#define COLLISION_H

#include "ObObject.h"
#include "ObMoving.h"
#include "d3dx9.h"
#include "vector"

class Collision{
public:
	
	static void checkCollision(ObMoving* ob1, ObObject* ob2, float dt, bool doPF, CollisionRS& rsforob1, CollisionRS& rsforob2);

	static CollisionRECT calCRECTFromCenterPos(D3DXVECTOR3& pos, float width, float height);
	static RECT calRECTFromCenterPos(D3DXVECTOR3& pos, float width, float height);
	static bool checkCAABBCollision(CollisionRECT OB1, CollisionRECT OB2);
	static bool checkAABBCollision(RECT OB1, RECT OB2);

private:
	static float epsilon;
};
#endif